public class P36 {
    public static void main(String[] args) {
        int array[] = {1,2,3};
    }

    public int sum(int array[]){
        int total = 0;
        for (int i = 0; i < array.length; i++) {
            total+=array[i];
        }
        return total;
    }
}
